// 1.安装：npm add react-router-dom
// 2.导入路由：Router / Route / Link
// 3.创建页面 接着使用route组件配置

import {BrowserRouter as Router,Route} from 'react-router-dom'
import Home from  '@/pages/Home'
import CityList from '@/pages/CityList'

const getRouter = () => (
	<Router>
      <Route path="/Home" component={Home} />
			<Route path="/CityList" component={CityList} />
	</Router>
);

export default getRouter;

